<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <style>
        h1 {
            margin: 0;
            padding: 0;
        }
        .header {
            background-color: orange;
            height: 80px;
        }
        .container {
            display: flex;
            height: 400px;
        }
        .left {
            background-color: lightblue;
            flex: 2;
        }
        .main {
            background-color: lightgray;
            flex: 8;
        }
    </style>

    <script src="./lib/vue2.4.4.js"></script>
    <script src="./lib/vue-router3.0.1.js"></script>
</head>

<body>
    <div id="app">
        <router-view></router-view>
        <div class="container">
            <router-view name="left"></router-view>
            <router-view name="main"></router-view>
        </div>
    </div>

    <template id="headerTpl">
        <h1 class="header">header</h1>
    </template>
    <template id="leftTpl">
        <h1 class="left">left</h1>
    </template>
    <template id="mainTpl">
        <h1 class="main">main</h1>
    </template>

    <script>

        var headerComponent = {
            template: '#headerTpl'
        }
        var leftComponent = {
            template: '#leftTpl'
        }
        var mainCom = {
            template: '#mainTpl'
        }

        var router = new VueRouter({
            routes: [
                {
                    path: '/',
                    components: {
                        'default': headerComponent,
                        'left': leftComponent,
                        'main': mainCom
                    }
                }
            ]
        })

        var vm = new Vue({
            el: '#app',
            data: {},
            methods: {},
            router
        })
    </script>
</body>

</html>